<%-- 
    Document   : listCustomers
    Created on : Jan 1, 2010, 4:02:44 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table border="1">
  <tr>
    <th>No</th>
    <th>Name</th>
    <th>Personal ID</th>
	<th>Cellphone</th>
	<th></th>
  </tr>
  <c:forEach var="customer" items="${customers}" varStatus="counter">
  <tr>
    <td>${counter.count}</td>
    <td><a href="view?id=${customer.autoId}">${customer.name}</a></td>
    <td>${customer.personalId}</td>
    <td>${customer.cellphone}</td>
    <td><a href="edit?id=${customer.autoId}">Edit</a></td>
    <td>
    </td>
  </tr>
  </c:forEach>

  <tr>
  <td colspan="6">
  <a href="edit">Create new customer</a>
  </td>
  </tr>

</table>